package com.nuanshui.heatedloan.socket;
public final class ProtoMsg {
  private ProtoMsg() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface MsgOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required string msgId = 1;
    /**
     * <code>required string msgId = 1;</code>
     *
     * <pre>
     * 消息id 也就代表着消息类型
     * </pre>
     */
    boolean hasMsgId();
    /**
     * <code>required string msgId = 1;</code>
     *
     * <pre>
     * 消息id 也就代表着消息类型
     * </pre>
     */
    java.lang.String getMsgId();
    /**
     * <code>required string msgId = 1;</code>
     *
     * <pre>
     * 消息id 也就代表着消息类型
     * </pre>
     */
    com.google.protobuf.ByteString
        getMsgIdBytes();

    // required int64 seq = 2;
    /**
     * <code>required int64 seq = 2;</code>
     *
     * <pre>
     * 发送到第几个
     * </pre>
     */
    boolean hasSeq();
    /**
     * <code>required int64 seq = 2;</code>
     *
     * <pre>
     * 发送到第几个
     * </pre>
     */
    long getSeq();

    // optional string userId = 3;
    /**
     * <code>optional string userId = 3;</code>
     *
     * <pre>
     *用户id
     * </pre>
     */
    boolean hasUserId();
    /**
     * <code>optional string userId = 3;</code>
     *
     * <pre>
     *用户id
     * </pre>
     */
    java.lang.String getUserId();
    /**
     * <code>optional string userId = 3;</code>
     *
     * <pre>
     *用户id
     * </pre>
     */
    com.google.protobuf.ByteString
        getUserIdBytes();

    // optional string safeToken = 4;
    /**
     * <code>optional string safeToken = 4;</code>
     *
     * <pre>
     *token值
     * </pre>
     */
    boolean hasSafeToken();
    /**
     * <code>optional string safeToken = 4;</code>
     *
     * <pre>
     *token值
     * </pre>
     */
    java.lang.String getSafeToken();
    /**
     * <code>optional string safeToken = 4;</code>
     *
     * <pre>
     *token值
     * </pre>
     */
    com.google.protobuf.ByteString
        getSafeTokenBytes();

    // required string clientType = 5;
    /**
     * <code>required string clientType = 5;</code>
     *
     * <pre>
     * 客户端
     * </pre>
     */
    boolean hasClientType();
    /**
     * <code>required string clientType = 5;</code>
     *
     * <pre>
     * 客户端
     * </pre>
     */
    java.lang.String getClientType();
    /**
     * <code>required string clientType = 5;</code>
     *
     * <pre>
     * 客户端
     * </pre>
     */
    com.google.protobuf.ByteString
        getClientTypeBytes();

    // required string statusCode = 6;
    /**
     * <code>required string statusCode = 6;</code>
     *
     * <pre>
     *状态
     * </pre>
     */
    boolean hasStatusCode();
    /**
     * <code>required string statusCode = 6;</code>
     *
     * <pre>
     *状态
     * </pre>
     */
    java.lang.String getStatusCode();
    /**
     * <code>required string statusCode = 6;</code>
     *
     * <pre>
     *状态
     * </pre>
     */
    com.google.protobuf.ByteString
        getStatusCodeBytes();

    // optional string bodyData = 7;
    /**
     * <code>optional string bodyData = 7;</code>
     *
     * <pre>
     *实际数据
     * </pre>
     */
    boolean hasBodyData();
    /**
     * <code>optional string bodyData = 7;</code>
     *
     * <pre>
     *实际数据
     * </pre>
     */
    java.lang.String getBodyData();
    /**
     * <code>optional string bodyData = 7;</code>
     *
     * <pre>
     *实际数据
     * </pre>
     */
    com.google.protobuf.ByteString
        getBodyDataBytes();
  }
  /**
   * Protobuf type {@code Msg}
   */
  public static final class Msg extends
      com.google.protobuf.GeneratedMessage
      implements MsgOrBuilder {
    // Use Msg.newBuilder() to construct.
    private Msg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Msg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Msg defaultInstance;
    public static Msg getDefaultInstance() {
      return defaultInstance;
    }

    @Override
	public Msg getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Msg(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              bitField0_ |= 0x00000001;
              msgId_ = input.readBytes();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              seq_ = input.readInt64();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              userId_ = input.readBytes();
              break;
            }
            case 34: {
              bitField0_ |= 0x00000008;
              safeToken_ = input.readBytes();
              break;
            }
            case 42: {
              bitField0_ |= 0x00000010;
              clientType_ = input.readBytes();
              break;
            }
            case 50: {
              bitField0_ |= 0x00000020;
              statusCode_ = input.readBytes();
              break;
            }
            case 58: {
              bitField0_ |= 0x00000040;
              bodyData_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return ProtoMsg.internal_static_Msg_descriptor;
    }

    @Override
	protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return ProtoMsg.internal_static_Msg_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              ProtoMsg.Msg.class, ProtoMsg.Msg.Builder.class);
    }

    public static com.google.protobuf.Parser<Msg> PARSER =
        new com.google.protobuf.AbstractParser<Msg>() {
      @Override
	public Msg parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Msg(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser<Msg> getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // required string msgId = 1;
    public static final int MSGID_FIELD_NUMBER = 1;
    private java.lang.Object msgId_;
    /**
     * <code>required string msgId = 1;</code>
     *
     * <pre>
     * 消息id 也就代表着消息类型
     * </pre>
     */
    @Override
	public boolean hasMsgId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>required string msgId = 1;</code>
     *
     * <pre>
     * 消息id 也就代表着消息类型
     * </pre>
     */
    @Override
	public java.lang.String getMsgId() {
      java.lang.Object ref = msgId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          msgId_ = s;
        }
        return s;
      }
    }
    /**
     * <code>required string msgId = 1;</code>
     *
     * <pre>
     * 消息id 也就代表着消息类型
     * </pre>
     */
    @Override
	public com.google.protobuf.ByteString
        getMsgIdBytes() {
      java.lang.Object ref = msgId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        msgId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // required int64 seq = 2;
    public static final int SEQ_FIELD_NUMBER = 2;
    private long seq_;
    /**
     * <code>required int64 seq = 2;</code>
     *
     * <pre>
     * 发送到第几个
     * </pre>
     */
    @Override
	public boolean hasSeq() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>required int64 seq = 2;</code>
     *
     * <pre>
     * 发送到第几个
     * </pre>
     */
    @Override
	public long getSeq() {
      return seq_;
    }

    // optional string userId = 3;
    public static final int USERID_FIELD_NUMBER = 3;
    private java.lang.Object userId_;
    /**
     * <code>optional string userId = 3;</code>
     *
     * <pre>
     *用户id
     * </pre>
     */
    @Override
	public boolean hasUserId() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>optional string userId = 3;</code>
     *
     * <pre>
     *用户id
     * </pre>
     */
    @Override
	public java.lang.String getUserId() {
      java.lang.Object ref = userId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          userId_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string userId = 3;</code>
     *
     * <pre>
     *用户id
     * </pre>
     */
    @Override
	public com.google.protobuf.ByteString
        getUserIdBytes() {
      java.lang.Object ref = userId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        userId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string safeToken = 4;
    public static final int SAFETOKEN_FIELD_NUMBER = 4;
    private java.lang.Object safeToken_;
    /**
     * <code>optional string safeToken = 4;</code>
     *
     * <pre>
     *token值
     * </pre>
     */
    @Override
	public boolean hasSafeToken() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * <code>optional string safeToken = 4;</code>
     *
     * <pre>
     *token值
     * </pre>
     */
    @Override
	public java.lang.String getSafeToken() {
      java.lang.Object ref = safeToken_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          safeToken_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string safeToken = 4;</code>
     *
     * <pre>
     *token值
     * </pre>
     */
    @Override
	public com.google.protobuf.ByteString
        getSafeTokenBytes() {
      java.lang.Object ref = safeToken_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        safeToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // required string clientType = 5;
    public static final int CLIENTTYPE_FIELD_NUMBER = 5;
    private java.lang.Object clientType_;
    /**
     * <code>required string clientType = 5;</code>
     *
     * <pre>
     * 客户端
     * </pre>
     */
    @Override
	public boolean hasClientType() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * <code>required string clientType = 5;</code>
     *
     * <pre>
     * 客户端
     * </pre>
     */
    @Override
	public java.lang.String getClientType() {
      java.lang.Object ref = clientType_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          clientType_ = s;
        }
        return s;
      }
    }
    /**
     * <code>required string clientType = 5;</code>
     *
     * <pre>
     * 客户端
     * </pre>
     */
    @Override
	public com.google.protobuf.ByteString
        getClientTypeBytes() {
      java.lang.Object ref = clientType_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clientType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // required string statusCode = 6;
    public static final int STATUSCODE_FIELD_NUMBER = 6;
    private java.lang.Object statusCode_;
    /**
     * <code>required string statusCode = 6;</code>
     *
     * <pre>
     *状态
     * </pre>
     */
    @Override
	public boolean hasStatusCode() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * <code>required string statusCode = 6;</code>
     *
     * <pre>
     *状态
     * </pre>
     */
    @Override
	public java.lang.String getStatusCode() {
      java.lang.Object ref = statusCode_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          statusCode_ = s;
        }
        return s;
      }
    }
    /**
     * <code>required string statusCode = 6;</code>
     *
     * <pre>
     *状态
     * </pre>
     */
    @Override
	public com.google.protobuf.ByteString
        getStatusCodeBytes() {
      java.lang.Object ref = statusCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string bodyData = 7;
    public static final int BODYDATA_FIELD_NUMBER = 7;
    private java.lang.Object bodyData_;
    /**
     * <code>optional string bodyData = 7;</code>
     *
     * <pre>
     *实际数据
     * </pre>
     */
    @Override
	public boolean hasBodyData() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    /**
     * <code>optional string bodyData = 7;</code>
     *
     * <pre>
     *实际数据
     * </pre>
     */
    @Override
	public java.lang.String getBodyData() {
      java.lang.Object ref = bodyData_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          bodyData_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string bodyData = 7;</code>
     *
     * <pre>
     *实际数据
     * </pre>
     */
    @Override
	public com.google.protobuf.ByteString
        getBodyDataBytes() {
      java.lang.Object ref = bodyData_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        bodyData_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      msgId_ = "";
      seq_ = 0L;
      userId_ = "";
      safeToken_ = "";
      clientType_ = "";
      statusCode_ = "";
      bodyData_ = "";
    }
    private byte memoizedIsInitialized = -1;
    @Override
	public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasMsgId()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSeq()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasClientType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStatusCode()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @Override
	public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getMsgIdBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt64(2, seq_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getUserIdBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(4, getSafeTokenBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeBytes(5, getClientTypeBytes());
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeBytes(6, getStatusCodeBytes());
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeBytes(7, getBodyDataBytes());
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    @Override
	public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getMsgIdBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, seq_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getUserIdBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, getSafeTokenBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(5, getClientTypeBytes());
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(6, getStatusCodeBytes());
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(7, getBodyDataBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static ProtoMsg.Msg parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static ProtoMsg.Msg parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static ProtoMsg.Msg parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static ProtoMsg.Msg parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static ProtoMsg.Msg parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static ProtoMsg.Msg parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static ProtoMsg.Msg parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static ProtoMsg.Msg parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static ProtoMsg.Msg parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static ProtoMsg.Msg parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    @Override
	public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(ProtoMsg.Msg prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    @Override
	public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code Msg}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements ProtoMsg.MsgOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return ProtoMsg.internal_static_Msg_descriptor;
      }

      @Override
	protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return ProtoMsg.internal_static_Msg_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                ProtoMsg.Msg.class, ProtoMsg.Msg.Builder.class);
      }

      // Construct using ProtoMsg.Msg.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      @Override
	public Builder clear() {
        super.clear();
        msgId_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        seq_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000002);
        userId_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        safeToken_ = "";
        bitField0_ = (bitField0_ & ~0x00000008);
        clientType_ = "";
        bitField0_ = (bitField0_ & ~0x00000010);
        statusCode_ = "";
        bitField0_ = (bitField0_ & ~0x00000020);
        bodyData_ = "";
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }

      @Override
	public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      @Override
	public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return ProtoMsg.internal_static_Msg_descriptor;
      }

      @Override
	public ProtoMsg.Msg getDefaultInstanceForType() {
        return ProtoMsg.Msg.getDefaultInstance();
      }

      @Override
	public ProtoMsg.Msg build() {
        ProtoMsg.Msg result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @Override
	public ProtoMsg.Msg buildPartial() {
        ProtoMsg.Msg result = new ProtoMsg.Msg(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.msgId_ = msgId_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.seq_ = seq_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.userId_ = userId_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.safeToken_ = safeToken_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.clientType_ = clientType_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.statusCode_ = statusCode_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        result.bodyData_ = bodyData_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @Override
	public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof ProtoMsg.Msg) {
          return mergeFrom((ProtoMsg.Msg)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(ProtoMsg.Msg other) {
        if (other == ProtoMsg.Msg.getDefaultInstance()) return this;
        if (other.hasMsgId()) {
          bitField0_ |= 0x00000001;
          msgId_ = other.msgId_;
          onChanged();
        }
        if (other.hasSeq()) {
          setSeq(other.getSeq());
        }
        if (other.hasUserId()) {
          bitField0_ |= 0x00000004;
          userId_ = other.userId_;
          onChanged();
        }
        if (other.hasSafeToken()) {
          bitField0_ |= 0x00000008;
          safeToken_ = other.safeToken_;
          onChanged();
        }
        if (other.hasClientType()) {
          bitField0_ |= 0x00000010;
          clientType_ = other.clientType_;
          onChanged();
        }
        if (other.hasStatusCode()) {
          bitField0_ |= 0x00000020;
          statusCode_ = other.statusCode_;
          onChanged();
        }
        if (other.hasBodyData()) {
          bitField0_ |= 0x00000040;
          bodyData_ = other.bodyData_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      @Override
	public final boolean isInitialized() {
        if (!hasMsgId()) {
          
          return false;
        }
        if (!hasSeq()) {
          
          return false;
        }
        if (!hasClientType()) {
          
          return false;
        }
        if (!hasStatusCode()) {
          
          return false;
        }
        return true;
      }

      @Override
	public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        ProtoMsg.Msg parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (ProtoMsg.Msg) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // required string msgId = 1;
      private java.lang.Object msgId_ = "";
      /**
       * <code>required string msgId = 1;</code>
       *
       * <pre>
       * 消息id 也就代表着消息类型
       * </pre>
       */
      @Override
	public boolean hasMsgId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>required string msgId = 1;</code>
       *
       * <pre>
       * 消息id 也就代表着消息类型
       * </pre>
       */
      @Override
	public java.lang.String getMsgId() {
        java.lang.Object ref = msgId_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          msgId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>required string msgId = 1;</code>
       *
       * <pre>
       * 消息id 也就代表着消息类型
       * </pre>
       */
      @Override
	public com.google.protobuf.ByteString
          getMsgIdBytes() {
        java.lang.Object ref = msgId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          msgId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>required string msgId = 1;</code>
       *
       * <pre>
       * 消息id 也就代表着消息类型
       * </pre>
       */
      public Builder setMsgId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        msgId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required string msgId = 1;</code>
       *
       * <pre>
       * 消息id 也就代表着消息类型
       * </pre>
       */
      public Builder clearMsgId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        msgId_ = getDefaultInstance().getMsgId();
        onChanged();
        return this;
      }
      /**
       * <code>required string msgId = 1;</code>
       *
       * <pre>
       * 消息id 也就代表着消息类型
       * </pre>
       */
      public Builder setMsgIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        msgId_ = value;
        onChanged();
        return this;
      }

      // required int64 seq = 2;
      private long seq_ ;
      /**
       * <code>required int64 seq = 2;</code>
       *
       * <pre>
       * 发送到第几个
       * </pre>
       */
      @Override
	public boolean hasSeq() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>required int64 seq = 2;</code>
       *
       * <pre>
       * 发送到第几个
       * </pre>
       */
      @Override
	public long getSeq() {
        return seq_;
      }
      /**
       * <code>required int64 seq = 2;</code>
       *
       * <pre>
       * 发送到第几个
       * </pre>
       */
      public Builder setSeq(long value) {
        bitField0_ |= 0x00000002;
        seq_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int64 seq = 2;</code>
       *
       * <pre>
       * 发送到第几个
       * </pre>
       */
      public Builder clearSeq() {
        bitField0_ = (bitField0_ & ~0x00000002);
        seq_ = 0L;
        onChanged();
        return this;
      }

      // optional string userId = 3;
      private java.lang.Object userId_ = "";
      /**
       * <code>optional string userId = 3;</code>
       *
       * <pre>
       *用户id
       * </pre>
       */
      @Override
	public boolean hasUserId() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>optional string userId = 3;</code>
       *
       * <pre>
       *用户id
       * </pre>
       */
      @Override
	public java.lang.String getUserId() {
        java.lang.Object ref = userId_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          userId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string userId = 3;</code>
       *
       * <pre>
       *用户id
       * </pre>
       */
      @Override
	public com.google.protobuf.ByteString
          getUserIdBytes() {
        java.lang.Object ref = userId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          userId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string userId = 3;</code>
       *
       * <pre>
       *用户id
       * </pre>
       */
      public Builder setUserId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        userId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string userId = 3;</code>
       *
       * <pre>
       *用户id
       * </pre>
       */
      public Builder clearUserId() {
        bitField0_ = (bitField0_ & ~0x00000004);
        userId_ = getDefaultInstance().getUserId();
        onChanged();
        return this;
      }
      /**
       * <code>optional string userId = 3;</code>
       *
       * <pre>
       *用户id
       * </pre>
       */
      public Builder setUserIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        userId_ = value;
        onChanged();
        return this;
      }

      // optional string safeToken = 4;
      private java.lang.Object safeToken_ = "";
      /**
       * <code>optional string safeToken = 4;</code>
       *
       * <pre>
       *token值
       * </pre>
       */
      @Override
	public boolean hasSafeToken() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * <code>optional string safeToken = 4;</code>
       *
       * <pre>
       *token值
       * </pre>
       */
      @Override
	public java.lang.String getSafeToken() {
        java.lang.Object ref = safeToken_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          safeToken_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string safeToken = 4;</code>
       *
       * <pre>
       *token值
       * </pre>
       */
      @Override
	public com.google.protobuf.ByteString
          getSafeTokenBytes() {
        java.lang.Object ref = safeToken_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          safeToken_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string safeToken = 4;</code>
       *
       * <pre>
       *token值
       * </pre>
       */
      public Builder setSafeToken(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        safeToken_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string safeToken = 4;</code>
       *
       * <pre>
       *token值
       * </pre>
       */
      public Builder clearSafeToken() {
        bitField0_ = (bitField0_ & ~0x00000008);
        safeToken_ = getDefaultInstance().getSafeToken();
        onChanged();
        return this;
      }
      /**
       * <code>optional string safeToken = 4;</code>
       *
       * <pre>
       *token值
       * </pre>
       */
      public Builder setSafeTokenBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        safeToken_ = value;
        onChanged();
        return this;
      }

      // required string clientType = 5;
      private java.lang.Object clientType_ = "";
      /**
       * <code>required string clientType = 5;</code>
       *
       * <pre>
       * 客户端
       * </pre>
       */
      @Override
	public boolean hasClientType() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * <code>required string clientType = 5;</code>
       *
       * <pre>
       * 客户端
       * </pre>
       */
      @Override
	public java.lang.String getClientType() {
        java.lang.Object ref = clientType_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          clientType_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>required string clientType = 5;</code>
       *
       * <pre>
       * 客户端
       * </pre>
       */
      @Override
	public com.google.protobuf.ByteString
          getClientTypeBytes() {
        java.lang.Object ref = clientType_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          clientType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>required string clientType = 5;</code>
       *
       * <pre>
       * 客户端
       * </pre>
       */
      public Builder setClientType(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        clientType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required string clientType = 5;</code>
       *
       * <pre>
       * 客户端
       * </pre>
       */
      public Builder clearClientType() {
        bitField0_ = (bitField0_ & ~0x00000010);
        clientType_ = getDefaultInstance().getClientType();
        onChanged();
        return this;
      }
      /**
       * <code>required string clientType = 5;</code>
       *
       * <pre>
       * 客户端
       * </pre>
       */
      public Builder setClientTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        clientType_ = value;
        onChanged();
        return this;
      }

      // required string statusCode = 6;
      private java.lang.Object statusCode_ = "";
      /**
       * <code>required string statusCode = 6;</code>
       *
       * <pre>
       *状态
       * </pre>
       */
      @Override
	public boolean hasStatusCode() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * <code>required string statusCode = 6;</code>
       *
       * <pre>
       *状态
       * </pre>
       */
      @Override
	public java.lang.String getStatusCode() {
        java.lang.Object ref = statusCode_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          statusCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>required string statusCode = 6;</code>
       *
       * <pre>
       *状态
       * </pre>
       */
      @Override
	public com.google.protobuf.ByteString
          getStatusCodeBytes() {
        java.lang.Object ref = statusCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          statusCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>required string statusCode = 6;</code>
       *
       * <pre>
       *状态
       * </pre>
       */
      public Builder setStatusCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
        statusCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required string statusCode = 6;</code>
       *
       * <pre>
       *状态
       * </pre>
       */
      public Builder clearStatusCode() {
        bitField0_ = (bitField0_ & ~0x00000020);
        statusCode_ = getDefaultInstance().getStatusCode();
        onChanged();
        return this;
      }
      /**
       * <code>required string statusCode = 6;</code>
       *
       * <pre>
       *状态
       * </pre>
       */
      public Builder setStatusCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
        statusCode_ = value;
        onChanged();
        return this;
      }

      // optional string bodyData = 7;
      private java.lang.Object bodyData_ = "";
      /**
       * <code>optional string bodyData = 7;</code>
       *
       * <pre>
       *实际数据
       * </pre>
       */
      @Override
	public boolean hasBodyData() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * <code>optional string bodyData = 7;</code>
       *
       * <pre>
       *实际数据
       * </pre>
       */
      @Override
	public java.lang.String getBodyData() {
        java.lang.Object ref = bodyData_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          bodyData_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string bodyData = 7;</code>
       *
       * <pre>
       *实际数据
       * </pre>
       */
      @Override
	public com.google.protobuf.ByteString
          getBodyDataBytes() {
        java.lang.Object ref = bodyData_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          bodyData_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string bodyData = 7;</code>
       *
       * <pre>
       *实际数据
       * </pre>
       */
      public Builder setBodyData(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
        bodyData_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string bodyData = 7;</code>
       *
       * <pre>
       *实际数据
       * </pre>
       */
      public Builder clearBodyData() {
        bitField0_ = (bitField0_ & ~0x00000040);
        bodyData_ = getDefaultInstance().getBodyData();
        onChanged();
        return this;
      }
      /**
       * <code>optional string bodyData = 7;</code>
       *
       * <pre>
       *实际数据
       * </pre>
       */
      public Builder setBodyDataBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
        bodyData_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:Msg)
    }

    static {
      defaultInstance = new Msg(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:Msg)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_Msg_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_Msg_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\016ProtoMsg.proto\"~\n\003Msg\022\r\n\005msgId\030\001 \002(\t\022\013" +
      "\n\003seq\030\002 \002(\003\022\016\n\006userId\030\003 \001(\t\022\021\n\tsafeToken" +
      "\030\004 \001(\t\022\022\n\nclientType\030\005 \002(\t\022\022\n\nstatusCode" +
      "\030\006 \002(\t\022\020\n\010bodyData\030\007 \001(\t"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
        @Override
		public com.google.protobuf.ExtensionRegistry assignDescriptors(
            com.google.protobuf.Descriptors.FileDescriptor root) {
          descriptor = root;
          internal_static_Msg_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_Msg_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_Msg_descriptor,
              new java.lang.String[] { "MsgId", "Seq", "UserId", "SafeToken", "ClientType", "StatusCode", "BodyData", });
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}
